/*
 * Copyright © 2017 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */
package cn.hermit.data.xml.factory;

import java.util.ArrayList;
import java.util.Collection;

import cn.hermit.data.xml.model.XmlFactory;
import cn.hermit.data.xml.model.XmlAttribute;
import cn.hermit.data.xml.model.XmlNode;

/**
 * A XML Factory using ArrayList as container of sub nodes and attributes.
 * 
 * @author Jack Gao (Chinese name : GAO JIANGUO, Email : linux.gjg@gmail.com)
 * @date 19 Jun, 2014
 */
public class OrderedXmlFactory extends XmlFactory {

	/**
	 * Create a container of XML nodes using ArrayList
	 * 
	 * @return
	 * 		a container of XML nodes
	 */
	@Override
	public Collection<XmlNode> createChildrenContainer() {
		return new ArrayList<XmlNode>();
	}

	/**
	 * Create a container of XML attributes using ArrayList
	 * 
	 * @return
	 * 		a container of XML attributes
	 */
	@Override
	public Collection<XmlAttribute> createAttributeContainer() {
		return new ArrayList<XmlAttribute>();
	}

}